package org.thanos.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;

@Configuration
public class DynamicDataSourceConfig {

    @Bean
    public DynamicRoutingDataSource dynamicRoutingDataSource(){
        return new DynamicRoutingDataSource();
    }
}
